package com.ycfmedical.bed.local;

import com.ycfmedical.bed.local.entity.TimerReminder;
import com.ycfmedical.bed.local.entity.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Data数据缓存类
 * Created by Egoist on 2017/3/14.
 */

public class DataManager {

    private DataManager(){ }

    public static DataManager getInstance(){
        return  hodler.instance;
    }

    private static class hodler{
        private static DataManager instance = new DataManager();
    }

    // 用户信息数据缓存
    User mUser = new User();
    // 闹钟数据源
    List<TimerReminder> mTimerList = new ArrayList<>();

    public List<TimerReminder> getmTimerList()
    {
        return mTimerList;
    }

    public void setmTimerList(List<TimerReminder> mTimerList) {
        this.mTimerList = mTimerList;
    }

    public User getUser() {
        return mUser;
    }

    public void setUser(User mUser) {
        this.mUser = mUser;
    }
}
